package demo6;

public class Demo2 {
    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        System.out.println(s1);
        Singleton s2 = Singleton.getInstance();
        System.out.println(s2);
        Student student1 = Student.getInstance();
        System.out.println(student1);
        Student student2 = Student.getInstance();
        System.out.println(student2);
    }
}
